//
//  CustomRowView.m
//  MacDevTest
//
//  Created by 夏利兵 on 2020/8/13.
//  Copyright © 2020 com.lbx. All rights reserved.
//

#import "CustomRowView.h"

@implementation CustomRowView

- (void)drawRect:(NSRect)dirtyRect {
    [super drawRect:dirtyRect];
    
    // Drawing code here.
}

- (void)drawSelectionInRect:(NSRect)dirtyRect {
    if (self.selectionHighlightStyle != NSTableViewSelectionHighlightStyleNone) {
        NSRect selectionRect = NSInsetRect(self.bounds, 0, 0);
        [[NSColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:1] setFill];
        NSBezierPath *selectionPath = [NSBezierPath bezierPathWithRoundedRect:selectionRect xRadius:0 yRadius:0];
        [selectionPath fill];
    }
}

@end
